import 'package:flutter/material.dart';
import 'package:flutter_app/view/P0/prepare_painter.dart';

/// create by 孙启慧 on 2021-06-02
/// 说明: 画笔初步体验

class Prepare extends StatefulWidget {
  const Prepare({Key? key}) : super(key: key);

  @override
  _PrepareState createState() => _PrepareState();
}

class _PrepareState extends State<Prepare> with SingleTickerProviderStateMixin {
  late AnimationController _controller;


  @override
  void initState() {
    super.initState();
    _controller = AnimationController(vsync: this);
  }

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('画笔触笔使用'),),
      body: Container(
        //color: Colors.white,
        child: CustomPaint(
          painter: PreparePainter(),
        ),
      ),
    );
  }
}
